package com.dxiang.demo.utils;

/**
 * @author Jerry
 */
public enum ContentLevelEnum
{

	NORMAL(0, "正常"),
	
	UNKNOWN(1, "未知"),
	
	NGWORD(2, "敏感字符"),

	ILLEGAL_IMG(3, "非法图片"),
	
	NGWORD_ILLEGAL_IMG(4, "敏感词和非法图片");


	private int value;
	private String text;

	ContentLevelEnum(int value, String text)
    {
		this.value = value;

		this.text = text;
	}

	public int getValue() {
		return value;
	}

	public String getText() {
		return text;
	}
	
	public static ContentLevelEnum getEnum(Integer val)
    {
		for (ContentLevelEnum v : values())
        {
			if (v.getValue() == val)
            {
				return v;
			}
		}
//		throw new IllegalArgumentException("Unknown OsType Value: " + val);
		return null;
    }

}
